package cn.kgc.itrip.dao.itripcomment;
import cn.kgc.itrip.beans.pojo.ItripComment;
import cn.kgc.itrip.beans.vo.comment.ItripListCommentVO;
import cn.kgc.itrip.beans.vo.comment.ItripScoreCommentVO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

public interface ItripCommentMapper {

	ItripScoreCommentVO getItripCommentScore(@Param("hotelId") Long hotelId)throws Exception;

	List<ItripListCommentVO> getItripCommentList(Map<String, Object> map)throws Exception;

	Integer getItripCommentCount(Map<String, Object> map)throws Exception;

	public ItripComment getItripCommentById(@Param(value = "id") Long id)throws Exception;

	public List<ItripComment>	getItripCommentListByMap(Map<String, Object> param)throws Exception;

	public Integer getItripCommentCountByMap(Map<String, Object> param)throws Exception;

	public Integer insertItripComment(ItripComment itripComment)throws Exception;

	public Integer updateItripComment(ItripComment itripComment)throws Exception;

	public Integer deleteItripCommentById(@Param(value = "id") Long id)throws Exception;
}
